<?php
namespace Application\View\Helper;

use Zend\View\Helper\AbstractHelper;

class RouteNamesHelper extends AbstractHelper
{

	protected $routeMatch;

	public function __construct($routeMatch)
	{
		$this->routeMatch = $routeMatch;
	}

	public function __invoke()
	{
		if ($this->routeMatch) {
			$controller = $this->routeMatch->getParam('controller');
			
			// echo $controller;
			// echo "<br />";
			// print_r($this->routeMatch);die;
			
			return $this->routeMatch;
		}
	}
}